
<%@ page language="java" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>DataConverge</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <script type="text/javascript">
    	function checkForm(){
    	    //alert("size is "+document.form0.all.contents.length);
    		for(var i=0;i<document.form0.all.contents.length;i++){
    			if(document.form0.all.contents[i].checked==true){
    				return true;
    			}
    		}
    		alert("请至少选择一项统计内容");
    		return false;
    	}
    </script>
  </head>
  
  <body>
    <br>
	<form name="form0" action="researcherAnalyze.htm" method="post" onsubmit="return checkForm();">
<table width="70%" border="0">
  <tr>
    <td>统计内容：</td>
    <td><input name="contents" type="checkbox" value="age">年龄 
        <input name="contents" type="checkbox" value="zhicheng">职称      
		<input name="contents" type="checkbox" value="qualification">学位
	</td>
  </tr>
</table>
<br>
<table width="70%" border="1">
<tr>
	<td colspan="2"><div align="center"><h4>统计条件</h4></div></td>
</tr>
<tr>
    <td>所属单位</td>
    <td>
    	<select name="org">
    		<option value=""></option>
    		<option value="0">望京医院</option>
    	</select>
    </td>
  </tr>
<tr>
    <td>年龄段</td>
    <td>从<input type="text" name="beginAge" size="8">岁到<input type="text" name="endAge" size="8">岁</td>
  </tr>
<tr>
    <td>职称</td>
    <td>
		<select name="zhicheng">
			<option value=""></option>
			<option value="0">正高</option>
			<option value="1">副高</option>
			<option value="2">中级</option>
			<option value="3">初级</option>
		</select>	
	</td>
</tr>
<tr>
    <td>专业</td>
    <td>
		<select name="major">
			<option value=""></option>
			<option value="1">中医基础理论</option>
		</select>    
	</td>
</tr>
<tr>
    <td>学位</td>
    <td>
		<select name="qualification">
			<option value=""></option>
			<option value="0">博士</option>
			<option value="1">硕士</option>
			<option value="2">本科</option>
			<option value="3">大专及其它</option>
		</select>	
	</td>
  </tr>
</table>
<br>
<div align="center"><input type="submit" value="统计">&nbsp;&nbsp;<input type="reset" value="取消"></div>
</form>
  <%
  if(session.getAttribute("graphURL") != null)
  {
  	String graphURL = (String)session.getAttribute("graphURL");
  	String filename = (String)session.getAttribute("filename");
  	session.removeAttribute("graphURL");
  	session.removeAttribute("filename");
   %>
<P ALIGN="CENTER"> 
<img src="<%= graphURL %>" width=500 height=300 border=0 usemap="#<%= filename%>" align="middle"> 
</P> 
<%} %>
  </body>
</html>
